package cn.ly.array.ord;

import java.util.Random;

public class OrderApp {
	
	public static void main(String[] args) {
		
		OrdArray arr = new OrdArray(100);
		Random rand = new Random();
		long tempRan = 0;
		for(int i=0; i < 10; i++){
			tempRan = rand.nextLong();
			if(tempRan < 0){
				tempRan *= -1;
			}
			arr.insert(tempRan%1000 + 1);
		}
		
		arr.display();
		
		System.out.println();
		
		arr.insertByHalfFind(201);
		
		arr.display();
		
		System.out.println();
		
		arr.delete(201);
		
		arr.display();
		
		
		
	}

}
